package com.xju.ikun.service.serviceImpl;

import com.xju.ikun.bean.MtypeBean;
import com.xju.ikun.dao.MtypeDao;
import com.xju.ikun.service.MtypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MtypeServiceImpl implements MtypeService {
    @Autowired
    private MtypeDao mtypeDao;

    public List<MtypeBean> findAll() {
        return mtypeDao.findAll();
    }

    @Override
    public int insertMtypeBean(MtypeBean mtypeBean) {
        return mtypeDao.insertMtypeBean(mtypeBean);
    }

    @Override
    public int updateByPrimaryKey(MtypeBean mtypeBean) {
        return mtypeDao.updateByPrimaryKey(mtypeBean);
    }

    @Override
    public int deleteByPrimaryKey(int tid) {
        return mtypeDao.deleteByPrimaryKey(tid);
    }

}
